# -*- coding: utf-8 -*-
from dajaxice.core import dajaxice_autodiscover, dajaxice_config
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import RedirectView


# Uncomment the next two lines to enable the admin:
admin.autodiscover()

### for dajaxice ###########################
dajaxice_autodiscover()
### for dajaxice ###########################

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'realpricemapsrv.views.home', name='home'),
    # url(r'^realpricemapsrv/', include('realpricemapsrv.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    
    url(r'^$', RedirectView.as_view(url='/data/')),
    url(r'^data/', include('data.urls')),
    
    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    
    ### for dajaxice #########################################################
    url(dajaxice_config.dajaxice_url, include('dajaxice.urls')),
)

### for dajaxice #########################################################
urlpatterns += staticfiles_urlpatterns()
### for dajaxice #########################################################